
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>
    <head>
        <!-- 必要的标签 -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <!-- Bootstrap CSS -->
        <link crossorigin="anonymous" integrity="sha512-6KY5s6UI5J7SVYuZB4S/CZMyPylqyyNZco376NM2Z8Sb8OxEdp02e1jkKk/wZxIEmjQ6DRCEBhni+gpr9c4tvA==" href="https://lib.baomitu.com/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    </head>
    <body>
    <nav th:replace="layouts::navbar"></nav>
    <div class="container">
        <form th:action="@{/attendances/save}" th:object="${attendance}" method="POST">
            <span>请选择时间：</span>
            <input type="date" th:field="${attendance.name}" >
            <span>今天的心情是：</span>
            <select th:field="${attendance.praise}">
                <option value="美滋滋">美滋滋</option>
                <option value="裂开">裂开</option>
                <option value="瑟瑟发抖">瑟瑟发抖</option>
                <option value="等天晴">等天晴</option>
                <option value="疲惫">疲惫</option>
                <option value="发呆">发呆</option>
                <option value="冲">冲</option>
                <option value="胡思乱想">胡思乱想</option>
                <option value="元气满满">元气满满</option>
            </select>
<!--            <input type="text"  th:field="${attendance.praise}">-->
            <button type="submit">分享吧！</button>

            </form>
    </div>
    </body>
    </html>